#!/bin/bash

start=`date +%s` # %s可以计算的是1970年以来的秒数

cd ../build

#TODO:少一个fb_200M
if [ "$1" == "1" ]
then dist=books_200M
elif [ "$1" == '2' ];
then dist=lognormal_200M
elif [ "$1" == '3' ]
then dist=normal_200M
elif [ "$1" == '4' ]
then dist=uniform_dense_200M
elif [ "$1" == '5' ]
then dist=uniform_sparse_200M
fi

./read_cold -f ../sosd-data/txtfiles_sample2M/${dist}.put -k 16 -v 64 -d ../ssd/db_sosd_sample2M_${dist} -m 7 -w > ../evaluation/sosd_sample2M_${dist}_put.txt

end=`date +%s`
time=`echo $start $end | awk '{print $2-$1}'`
echo ${dist} time_elapse_seconds: $time
